約 3,514,422 件
https://w.atwiki.jp/mediachamp/pages/132.html
KompoZer Portable (95/98/Me/2000/XP/Vista) オープンソースソフトウェア。 Download 説明 日本語化言語パック
https://w.atwiki.jp/conn1/pages/25.html
管理画面は自動生成できるけど、フロントエンドは自分で作る。 urls.py の編集 views.py の編集 テンプレートファイルの作成 3つの手順(単純なケースでは views.py の編集は不要だったりする)で作業する urls.py urlpatterns に patterns のインスタンスをセット、さらに追加していく。+=でpatternsを追加できる。 patterns は、さらに url のリストを含んでたりする。 基本は正規表現のURLマッチングと、呼び出す viewメソッドのセットで url に記述する。 プロジェクトと同名のディレクトリには既に urls.py があるので、それがいい例になる。 from django.conf.urls import patterns, include, url from django.views.generic import TemplateView # Uncomment the next two lines to enable the admin # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns( , url(r ^$ , TemplateView.as_view(template_name="index.html"), name= home ), # Examples # url(r ^$ , djangotest.views.home , name= home ), # url(r ^djangotest/ , include( djangotest.foo.urls )), # Uncomment the admin/doc line below to enable admin documentation # url(r ^admin/doc/ , include( django.contrib.admindocs.urls )), # Uncomment the next line to enable the admin # url(r ^admin/ , include(admin.site.urls)), ) 上から順に評価されるみたいなので http //localhost 8000/admin/doc/ は include( django.contrib.admindocs.urls ) で処理され include(admin.site.urls) には入らない。 include では、既にマッチした部分は 被includeファイルには渡されない。上のExamplesにある django.contrib.admindocs.urls の中身を見ると、/admin/doc/にマッチした場合に include されるファイルだけど、 from django.conf.urls import patterns, url from django.contrib.admindocs import views urlpatterns = patterns( , url( ^$ , views.doc_index, name= django-admindocs-docroot ), url( ^bookmarklets/$ , views.bookmarklets, name= django-admindocs-bookmarklets ), こんな感じになってて、上のは http //localhost 8000/admin/doc/ にマッチし 下のは http //loclahost 8000/admin/doc/bookmarklets/ にマッチする。 views.py ビューとは言いつつ、MVCモデルで言うところのCにあたる。 メソッド形式で定義し、パラメータに必ずHttpRequestのオブジェクトを受け取る。 いくつか例を挙げておく def index(request) return HttpResponce("index page") def hello(request, urlparam) return HttpResponce("Hello, World. %s" % urlparam) def show_template(request) return render_to_response( "template_file_path.html", { param value }, RequestContext(request)) def redirect_to_root(request) return redirect( / ) def redirect_by_viewname(request) return redirect( thispackage.views.hello ) def redirect_with_urlparam(request, *args) return redirect(( thispackage.views.hello ,args=[args[0]]) # こいつらにアクセスしようと思ったら、urlsはこんな感じに書く import views # ... url(r ^sample/$ , views.index), url(r ^sample/(? urlparam .*/)$ , views.hello), url(r ^sample/template/$, views.show_tamplate), url(r ^sample/root/$ , views.redirect_to_root), url(r ^sample/view/$ , views.redirect_by_viewname), url(r ^sample/urlparam/(.*)/$ , views.redirect_with_urlparam) #... ちゃんと試してないので、エラーでたらごめんなさい。 テンプレートファイルの作成 テンプレートファイルはすごく簡単なので、メモ残しておくまでもない。 雛形をつくっておいて、使いまわせば万事解決。 あとで作った雛形ファイルを上げておこうと思う。 CSSとJSを一切つくってないので、レイアウト崩れまくりだけども アップロードしておいたのはある。
https://w.atwiki.jp/marketresearch/pages/34.html
Electric Motorcycles Scooters Market Analysis and Insights Quince Market Insights (QMI) has released a new research study titled Electric Motorcycles Scooters Market” 2023-2032 analysis by the following subjects “Industry size, share, growth, segmentation, manufacturers and developments, key trends, market drivers, restraints, regulations, distribution methods, opportunities, strategies, potential road maps, and annual forecast until 2032"" Click on Link and Get the PDF Sample Copy (Including FULL TOC, Graphs, and Tables) of this report@ https //www.quincemarketinsights.com/request-sample-61925?Offpagepranali_31March23 An Outline of The Competitive Landscape of The Market This section contains comprehensive data on a number of key Electric Motorcycles Scooters market competitors, as well as information on recent changes, market contributions, and effective marketing methods. The report also provides a dashboard summary of the historical and current performance of the top corporations. Electric Motorcycles Scooters Market Size is part of a competitive market. Electric Motorcycles Scooters have evolved into strategic platforms that provide businesses with a stable foundation and information backbone. As a document, the company included the like Jiangsu Xinri E-Vehicle Co. Ltd. (China), Yadea Group Holdings Ltd. (China), NIU International (China), Hero Electric (India), and Silence Urban Ecomobility (Spain).. Market Growth Driver Battery swapping is a new technology that allows owner of electric vehicle to swap out their dying or dead battries with fully charged one. This development could completely transform the E2W market and improve the comfort and ease of long-distance driving for motorists Key Take away Industry drivers, restraints, and opportunities covered in the study A neutral perspective on the market performance Recent industry trends and developments Competitive landscape strategies of key players Potential niche segments and regions exhibiting promising growth covered Historical, current, and projected market size, in terms of value In-depth analysis of the Electric Motorcycles Scooters Market Industry News In January 2023 Yadea Group (China) launched Yadea Keeness VFD atConsumer Electronics Show (CES) in Las Vegas, Nevada. Keeness VFD model is equipped with a 10KW mid-mounted high-performance motor and features a maximum speed of 100km/h, and an acceleration from 0-50km/h in just 4 seconds. Market Segments The chapters on Electric Motorcycles Scooters segmentation allow the readers to understand consumer needs. It allows the business to grow with precision and accuracy. Analysts have highlighted the elements that are expected to influence the segments in the coming years. The publication segments the market on the basis of technology, services, and products. It details the Electric Motorcycles Scooters revenue earned by each of these segments and their potential in the years to come. ✦ Segmentation ✦ by Vehicle Type (Motorcycles, Scooters), by Battery (Lithium Ion, Sealed Lead Acid), by Range (0-75 Miles, 76-100 Miles, Above 100 Miles), by Voltage (60v, 48v, 36v, Others), by Technology (Plug-In, Battery) What are the key dynamic factors that are detailed in the report? Key Market Dynamics The Global Electric Motorcycles Scooters Market research report details the latest industry trends, growth patterns, and research methodologies. The factors that directly contribute to the growth of the market include the production strategies and methodologies, development platforms, and the product model itself, wherein a small change would result in further changes in the overall report. All of these factors are explained in detail in the research study. Market Outlook The report also sheds light on some of the major factors, including R D, new product launches, M A, agreements, partnerships, joint ventures, collaborations, and growth of the key industry participants, on a regional and global basis. Major Features The report provides a thorough analysis of some of the significant factors, which include cost, capacity, capacity utilization rate, production, revenue, production rate, consumption, import/export, supply/demand, gross, market share, CAGR, and gross margin. Besides, the report provides a comprehensive study of the key influencing factors and market inclinations, in addition to the relevant market segments and sub-segments. Analytical Tools The Global Electric Motorcycles Scooters Market report consists the precisely studied and evaluated information of the key players and their market scope using several analytical tools, including SWOT analysis, Porter’s five forces analysis, investment return analysis, and feasibility study. These tools have been used to efficiently study the growth of major industry participants. Potential Customers The report offers detailed insights to users, service providers, suppliers, manufacturers, stockholders, and individuals who are interested in evaluating and self-studying this market. A Synopsis of The Regional Landscape Of The Market This section of the report provides key insights regarding various regions and the key players operating in each region. Economic, social, environmental, technological, and political factors have been taken into consideration while assessing the growth of the particular region/country. The readers will also get their hands on the value and sales data of each region and country for the period 2023-2032. North America (United States, Canada and Mexico), Asia-Pacific (China, Japan, Korea, India, Southeast Asia and Australia), South America (Brazil, Argentina), Europe (Germany, France, United Kingdom, Russia and Italy), Middle East Africa (UAE, Egypt, Saudi Arabia, and South Africa) Report Scope This report aims to provide an extensive presentation of the global market with both qualitative and quantitative analysis, in order to help readers develop business/growth strategies, evaluate the competitive landscape, assess their position in the current market, and make well-informed decisions regarding Electric Motorcycles Scooters Market. The Data is accessible from 2023 to 2032, and the market size, forecasts, and estimates are given in terms of output/shipments (in units) and revenue (in USD millions/billion). This study segments the world market in extensive detail information on regional market sizes for items by type, application, and player are also provided. Market sizes were estimated while taking the effects of COVID-19 and the Russia-Ukraine War into consideration. The analysis includes profiles of the competitive environment, key players, and their specific market shares to provide a detailed understanding of the industry. Additionally, It contains a SWOT Analysis, a PESTEL Analysis, and a Porter’s FIVE Forces Analysis to assist you in understanding the Market, Competitive Landscape, and Factors That affect it, as well as forecasting the company’s future. Report Includes Following Questions What is the anticipated growth rate of the global Electric Motorcycles Scooters Market in the forecast period? Which regional segment is estimated to account for a massive share of the global Electric Motorcycles Scooters Market? What are the primary driving factors of the global Electric Motorcycles Scooters Market? What are the vital challenges faced by the prominent players in the global Electric Motorcycles Scooters Market? Which current trends are likely to offer promising growth prospects in the next few years? How is the competitive landscape of the global Electric Motorcycles Scooters Market at present? What are the key driving factors of the global Electric Motorcycles Scooters Market? Which latest trends are anticipated to offer potential growth prospected in the coming years? Make an Enquiry for purchasing this Electric Motorcycles Scooters Market Report @ https //www.quincemarketinsights.com/enquiry-before-buying/enquiry-before-buying-61925?Offpage/pranali_31March23 About Us QMI has the most comprehensive collection of market research products and services available on the web. We deliver reports from virtually all major publications and refresh our list regularly to provide you with immediate online access to the world’s most extensive and up-to-date archive of professional insights into global markets, companies, goods, and patterns. Contact us Quince Market Insights Phone APAC +91 706 672 4343 / US +1 208 405 2835 / UK +44 1444 39 0986 Email info@quincemarketinsights.com
https://w.atwiki.jp/javadsge/pages/9607.html
import zipfile import os import uuid title="練習" author="匿名希望" com="自費出版" codeu = str(uuid.uuid1()) txt = os.listdir( file ) f4=open("epub/item/xhtml/memo.xhtml","r",encoding="UTF-8") x4=[] for line in f4 x4.append(line) f4.close() page=[] n=0 for t in txt f5=open("file/"+t,"r",encoding="UTF-8") sig="" for line in f5 line=line.replace("\n","") sig=sig+" p "+line+" /p " f5.close() y5=[] for line in x4 line=line.replace("題名はここ",title) line=line.replace("著者はここ",author) line=line.replace("本文はここ",sig) ts=t.replace(".txt","") line=line.replace("サブタイトルはここ",ts) y5.append(line) n=n+1 f5x=open("p"+str(n)+".xhtml","w",encoding="UTF-8") page.append("p"+str(n)+".xhtml") for line in y5 f5x.write(line) f5x.close() print(page) f1=open("epub/item/xhtml/p-titlepage.xhtml","r",encoding="UTF-8") x1=[] for line in f1 x1.append(line) f1.close() y1=[] for line in x1 line=line.replace("題名はここ",title) line=line.replace("著者はここ",author) y1.append(line) f1x=open("p-titlepage.xhtml","w",encoding="UTF-8") for line in y1 f1x.write(line) f1x.close() f2=open("epub/item/xhtml/p-colophon.xhtml","r",encoding="UTF-8") x2=[] for line in f2 x2.append(line) f2.close() y2=[] for line in x2 line=line.replace("題名はここ",title) line=line.replace("著者はここ",author) line=line.replace("出版社はここ",com) y2.append(line) f2x=open("p-colophon.xhtml","w",encoding="UTF-8") for line in y2 f2x.write(line) f2x.close() f3=open("epub/item/xhtml/p-toc.xhtml","r",encoding="UTF-8") x3=[] for line in f3 x3.append(line) f3.close() y3=[] for line in x3 line=line.replace("題名はここ",title) line=line.replace("著者はここ",author) line=line.replace("出版社はここ",com) y3.append(line) f3x=open("p-toc.xhtml","w",encoding="UTF-8") for line in y3 f3x.write(line) f3x.close() f7=open("epub/item/standard.opf","r",encoding="UTF-8") x7=[] for line in f7 x7.append(line) f7.close() pen="" for pxs in page xxs=pxs.replace(".xhtml","") ppp=" item media-type=\"application/xhtml+xml\" id=\""+xxs+"\" href=\"xhtml/"+pxs+"\"/ " pen=pen+ppp pen2="" for pxs in page xxs=pxs.replace(".xhtml","") ppp=" itemref linear=\"yes\" idref=\""+xxs+"\" properties=\"page-spread-right\"/ " pen2=pen2+ppp y7=[] for line in x7 line=line.replace("題名はここ",title) line=line.replace("著者はここ",author) line=line.replace("出版社はここ",com) line=line.replace("ファイルはここ",pen) line=line.replace("目次はここ",pen2) line=line.replace("コードはここ",codeu) y7.append(line) f7x=open("standard.opf","w",encoding="UTF-8") for line in y7 f7x.write(line) f7x.close() zipFile = zipfile.ZipFile( book.epub , w , zipfile.ZIP_STORED) zipFile.write( epub/mimetype , mimetype ) zipFile.write( epub/META-INF/container.xml , META-INF/container.xml ) zipFile.write( epub/item/style/book-style.css , item/style/book-style.css ) zipFile.write( epub/item/style/style-standard.css , item/style/stylestyle-standard.css ) zipFile.write( epub/item/style/fixed-layout-jp.css , item/style/fixed-layout-jp.css ) zipFile.write( epub/item/style/style-advance.css , item/style/style-advance.css ) zipFile.write( epub/item/style/style-check.css , item/style/style-checke.css ) zipFile.write( epub/item/style/style-reset.css , item/style/style-reset.css ) zipFile.write( epub/item/xhtml/p-caution.xhtml , item/xhtml/p-caution.xhtml ) zipFile.write( epub/item/xhtml/p-cover.xhtml , item/xhtml/p-cover.xhtml ) zipFile.write( p-titlepage.xhtml , item/xhtml/p-titlepage.xhtml ) zipFile.write( p-colophon.xhtml , item/xhtml/p-colophon.xhtml ) zipFile.write( p-toc.xhtml , item/xhtml/p-toc.xhtml ) zipFile.write( standard.opf , item/standard.opf ) for pp in page zipFile.write(pp,"item/xhtml/"+pp) zipFile.close()
https://w.atwiki.jp/javadsge/pages/5126.html
package test; public class pro { int s,datanumber; String[] data=new String[5000]; String[] link=new String[5000]; public static void main(String[] arsg){ pro t=new pro(); } pro(){ String urlx="https //www.nier.go.jp/15chousakekkahoukoku/factsheet/prefecture/"; getssl sub=new getssl(); sub.makedata(urlx,"SJIS"); data=sub.data; datanumber=sub.datanumber; int s1=0; for(s=1;s datanumber+1;s++){ if(data[s].indexOf("北海道") -1)s1=s; } int sx=0; for(s=s1;s datanumber+1;s++){ if(data[s].indexOf(" li ") -1)sx=sx+1; if(data[s].indexOf(" li ") -1)link[sx]=data[s]; } int number=sx; for(s=1;s number+1;s++){ int p1=link[s].indexOf("\""); int p2=link[s].indexOf("\"",p1+1); link[s]="https //www.nier.go.jp/15chousakekkahoukoku/factsheet/prefecture/"+link[s].substring(p1+1,p2); } int tr=2; getssl sub2=new getssl(); sub2.makedata(link[tr],"SJIS"); data=sub2.data; datanumber=sub2.datanumber; String web=""; int h=0; for(s=1;s datanumber+1;s++){ h=0; if(data[s].indexOf("設問別調査結果") -1)h=h+1; if(data[s].indexOf("生徒") -1)h=h+1; if(h==2)web=data[s]; } int p1=web.indexOf("\""); int p2=web.indexOf("\"",p1+1); web=link[tr].replace("index.html","")+web.substring(p1+1,p2); dl sub8=new dl(); sub8.makedata(web,"a.xlsx"); } } package test; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSession; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; public class getssl { int s,datanumber; String[] data=new String[5000]; void makedata(String urlx,String code){ try { TrustManager[] tm = { new X509TrustManager() { public X509Certificate[] getAcceptedIssuers() { return null; } @Override public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException { } @Override public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException { } } }; SSLContext sslcontext = SSLContext.getInstance("SSL"); sslcontext.init(null, tm, null); HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() { @Override public boolean verify(String hostname, SSLSession session) { return true; } }); URL connectUrl = new URL(urlx); HttpsURLConnection urlconn = (HttpsURLConnection) connectUrl .openConnection(); urlconn.setRequestMethod("GET"); urlconn.setSSLSocketFactory(sslcontext.getSocketFactory()); urlconn.connect(); BufferedReader reader = new BufferedReader(new InputStreamReader( urlconn.getInputStream(), code)); s=0; String line; StringBuilder sb = new StringBuilder(); while ((line = reader.readLine()) != null) { s=s+1; data[s]=line; } datanumber=s; reader.close(); urlconn.disconnect(); } catch (Exception e) { e.printStackTrace(); } } }
https://w.atwiki.jp/takazumi/pages/46.html
import org.apache.poi.util.* import org.apache.poi.hssf.usermodel.* /* ブック作成 */ def book = new HSSFWorkbook() /* シート作成 */ def sheet = book.createSheet("画像挿入テスト") /* 画像をストリームで読み込む */ def bytes = IOUtils.toByteArray(new FileInputStream("./image/fumo.jpg")) def pictureIdx = book.addPicture(bytes, HSSFWorkbook.PICTURE_TYPE_JPEG) /* 描画オブジェクト生成(一回のみ実行する) */ def patriarch = sheet.createDrawingPatriarch() /* アンカーの生成 */ def anchor = new HSSFClientAnchor() // 0 = Move and size with Cells. // 2 = Move but don t size with cells. // 3 = Don t move or size with cells. anchor.setAnchorType(0) // ここではセルにあわせて移動&リサイズを選択 /* * 余白微調整? * このsetD~を指定しないとセルにぴったりくっついた感じになる */ anchor.setDx1(100) anchor.setDy1(100) anchor.setDx2(-100) anchor.setDy2(-100) /* * 画像の左上がセル(0,0)の左上~ * 右下がセル(10,3)の左上(=セル(9,2)の右下) */ anchor.setRow1(0) anchor.setCol1(0 as short) anchor.setRow2(10) anchor.setCol2(3 as short) /* partiachに画像を設定 */ patriarch.createPicture(anchor, pictureIdx) /* ファイル出力 */ book.write(new FileOutputStream("./excel/insert_image.xls"))
https://w.atwiki.jp/m_shige1979/pages/1532.html
テーブル 概要 テーブルのスタイル表記 テーブル tableタグにclass="table"で基本は可能です ソース(デモ) !DOCTYPE html html head meta charset="utf-8" / title テーブル01 /title meta name="viewport" content="width=device-width, initial-scale=1.0" !-- Bootstrap -- link href="css/bootstrap.min.css" rel="stylesheet" media="screen" /head body div class="row" style="margin 10px;" div class="span12" h1 テーブル /h1 /div /div div class="row" style="margin 10px;" div class="span12" h2 基本はclass="table" /h2 /div /div div class="row" style="margin 10px;" div class="span12" table class="table" tr td 1 /td td テスト1 /td td テストメモ1 /td /tr tr td 2 /td td テスト2 /td td テストメモ2 /td /tr tr td 3 /td td テスト3 /td td テストメモ3 /td /tr /table /div /div hr / div class="row" style="margin 10px;" div class="span12" h2 table-stripedを付加することで奇数行を変更 /h2 /div /div div class="row" style="margin 10px;" div class="span12" table class="table table-striped" tr td 1 /td td テスト1 /td td テストメモ1 /td /tr tr td 2 /td td テスト2 /td td テストメモ2 /td /tr tr td 3 /td td テスト3 /td td テストメモ3 /td /tr /table /div /div hr / div class="row" style="margin 10px;" div class="span12" h2 table-borderedを付加することで罫線を描画 /h2 /div /div div class="row" style="margin 10px;" div class="span12" table class="table table-bordered" tr td 1 /td td テスト1 /td td テストメモ1 /td /tr tr td 2 /td td テスト2 /td td テストメモ2 /td /tr tr td 3 /td td テスト3 /td td テストメモ3 /td /tr /table /div /div hr / div class="row" style="margin 10px;" div class="span12" h2 table-hoverを付加することでマウスホバー時に色を変更 /h2 /div /div div class="row" style="margin 10px;" div class="span12" table class="table table-hover" tr td 1 /td td テスト1 /td td テストメモ1 /td /tr tr td 2 /td td テスト2 /td td テストメモ2 /td /tr tr td 3 /td td テスト3 /td td テストメモ3 /td /tr /table /div /div hr / div class="row" style="margin 10px;" div class="span12" h2 table-condensedを付加することで行を少し狭くする /h2 /div /div div class="row" style="margin 10px;" div class="span12" table class="table table-condensed" tr td 1 /td td テスト1 /td td テストメモ1 /td /tr tr td 2 /td td テスト2 /td td テストメモ2 /td /tr tr td 3 /td td テスト3 /td td テストメモ3 /td /tr /table /div /div hr / div class="row" style="margin 10px;" div class="span12" h2 複数のclassを併用する /h2 /div /div div class="row" style="margin 10px;" div class="span12" table class="table table-striped table-hover table-bordered" tr td 1 /td td テスト1 /td td テストメモ1 /td /tr tr td 2 /td td テスト2 /td td テストメモ2 /td /tr tr td 3 /td td テスト3 /td td テストメモ3 /td /tr tr td 4 /td td テスト4 /td td テストメモ4 /td /tr /table /div /div hr / div class="row" style="margin 10px;" div class="span12" h2 trタグに"success"、"error"、"warning"、"info" /h2 /div /div div class="row" style="margin 10px;" div class="span12" table class="table" tr class="success" td 1 /td td テスト1(success) /td td テストメモ1 /td /tr tr class="error" td 2 /td td テスト2(error) /td td テストメモ2 /td /tr tr class="warning" td 3 /td td テスト3(warning) /td td テストメモ3 /td /tr tr class="info" td 4 /td td テスト4(info) /td td テストメモ4 /td /tr /table /div /div hr / script src="http //code.jquery.com/jquery.js" /script script src="js/bootstrap.min.js" /script /body /html
https://w.atwiki.jp/yasrun/pages/71.html
package org.yasrun.game.kafunwars; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.graphics.Paint.Style; import android.os.Bundle; import android.view.MotionEvent; import android.view.View; public class KafunWarsActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); MyView mView = new MyView(getApplication()); setContentView(mView); mView.start(); } } /** * 描画用のクラス */ class MyView extends View implements Updatable { private static final int KAFUN_MAX = 100; private Paint myPaint = new Paint(); private Bitmap bmpHana = null; private Bitmap bmpKafun = null; private List Kafun kafuns = null; private List Laser lasers = null; private UpdateHandler updateHandler = new UpdateHandler(this); private int touchStartX = 0; private int touchStartY = 0; private int power = 0; /** * コンストラクタ * * @param c */ public MyView(Context c) { super(c); setFocusable(true); Resources res = this.getContext().getResources(); bmpHana = BitmapFactory.decodeResource(res, R.drawable.hana); bmpKafun = BitmapFactory.decodeResource(res, R.drawable.kafun); kafuns = new ArrayList Kafun (); lasers = new ArrayList Laser (); myPaint.setColor(Color.CYAN); myPaint.setStyle(Style.FILL); } /** * 処理開始 */ public void start() { update(); } /** * タッチイベント */ public boolean onTouchEvent(MotionEvent event) { if (lasers.size() = 5) { return true; } switch (event.getAction()) { case MotionEvent.ACTION_DOWN touchStartX = (int) (event.getX()); touchStartY = (int) (event.getY()); power = 1; break; case MotionEvent.ACTION_UP int touchEndX = (int) (event.getX()); int touchEndY = (int) (event.getY()); lasers.add(new Laser(touchStartX, touchStartY, touchEndX, touchEndY)); power = 0; break; case MotionEvent.ACTION_MOVE if (power 20) { power++; } break; } return true; } /** * メイン */ public void update() { if (Math.random() 0.3 kafuns.size() KAFUN_MAX) { kafuns.add(new Kafun((int) (Math.random() * 320), 0, (int) (Math.random() * 8) - 4, 8)); } final List Kafun deadKafuns = new ArrayList Kafun (); final List Laser deadLasers = new ArrayList Laser (); for (Kafun kafun kafuns) { kafun.move(); kafun.judge(); if (kafun.isDead()) { deadKafuns.add(kafun); } } for (Kafun kafun deadKafuns) { kafuns.remove(kafun); } for (Laser laser lasers) { laser.move(); laser.judge(); if (laser.isDead()) { deadLasers.add(laser); } } for (Laser laser deadLasers) { lasers.remove(laser); } invalidate(); updateHandler.sleep(200); } /** * 描画処理 */ protected void onDraw(Canvas canvas) { canvas.drawColor(Color.BLACK); canvas.drawBitmap(bmpHana, 75, 340, myPaint); if (power 0) { int r = power / 2; canvas.drawOval(new RectF(touchStartX - r, touchStartY - r, touchStartX + r, touchStartY + r), myPaint); } for (Kafun kafun kafuns) { canvas.drawBitmap(bmpKafun, kafun.X, kafun.Y, myPaint); } for (Laser laser lasers) { canvas.drawLine(laser.X1, laser.Y1, laser.X2, laser.Y2, myPaint); } } }
https://w.atwiki.jp/ce00582/pages/5560.html
package war3; import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.stage.Stage; import javafx.scene.shape.Circle; import javafx.scene.paint.Color; public class pro extends Application { Circle[][] maru=new Circle[9][9]; int[][] point=new int[9][9]; int s,sx; int px,py; int bx,by; public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) { bx=7; by=7; px=5; py=5; for(s=1;s 9;s++){ for(sx=1;sx 9;sx++){ maru[s][sx]=new Circle(); maru[s][sx].setLayoutX(100+50*s); maru[s][sx].setLayoutY(100+50*sx); maru[s][sx].setRadius(25); maru[s][sx].setFill(Color.GREEN); } } for(s=1;s 9;s++){ for(sx=1;sx 9;sx++){ point[s][sx]=0; } } Button btn1 = new Button(); btn1.setText("左"); btn1.setOnAction(new EventHandler ActionEvent () { @Override public void handle(ActionEvent event) { maru[px][py].setFill(Color.GREEN); px=px-1; if(px 1)px=1; maru[px][py].setFill(Color.BLACK); } }); btn1.setLayoutX(200); btn1.setLayoutY(650); Button btn2 = new Button(); btn2.setText("上"); btn2.setOnAction(new EventHandler ActionEvent () { @Override public void handle(ActionEvent event) { maru[px][py].setFill(Color.GREEN); py=py-1; if(py 1)py=1; maru[px][py].setFill(Color.BLACK); } }); btn2.setLayoutX(250); btn2.setLayoutY(630); Button btn3 = new Button(); btn3.setText("決定"); btn3.setOnAction(new EventHandler ActionEvent () { @Override public void handle(ActionEvent event) { int h; h=0; if(px==bx)h=h+1; if(py==by)h=h+1; if(h==2)maru[px][py].setFill(Color.RED); } }); btn3.setLayoutX(250); btn3.setLayoutY(650); Button btn4 = new Button(); btn4.setText("下"); btn4.setOnAction(new EventHandler ActionEvent () { @Override public void handle(ActionEvent event) { maru[px][py].setFill(Color.GREEN); py=py+1; if(py 8)py=8; maru[px][py].setFill(Color.BLACK); } }); btn4.setLayoutX(250); btn4.setLayoutY(670); Button btn5 = new Button(); btn5.setText("右"); btn5.setOnAction(new EventHandler ActionEvent () { @Override public void handle(ActionEvent event) { maru[px][py].setFill(Color.GREEN); px=px+1; if(px 8)px=8; maru[px][py].setFill(Color.BLACK); } }); btn5.setLayoutX(300); btn5.setLayoutY(650); Group root = new Group(); Scene scene = new Scene(root, 700, 700); root.getChildren().add(btn1); root.getChildren().add(btn2); root.getChildren().add(btn3); root.getChildren().add(btn4); root.getChildren().add(btn5); for(s=1;s 9;s++){ for(sx=1;sx 9;sx++){ root.getChildren().add(maru[s][sx]); } } primaryStage.setTitle("Othello"); primaryStage.setScene(scene); primaryStage.show(); } }
https://w.atwiki.jp/teamsol/pages/33.html
METAL GEAR SOLID PORTABLE OPS + 発売日 2007/09/20 メーカー希望小売価格 2,286円(税込2,400円) PORTABLE OPSは終わらない――― 新たなステージ、新たなキャラクター、新たな武器―― そして、生まれ変わったシングルプレイモードに 厚みを増した充実の対戦プレイ! 強い兵士を集めて育て 再び友達や全国のプレイヤーと熱く戦え! 「+」を体感せよ――― 【対戦が更に楽しく! 初心者モードも搭載!】 ○兵士タイプの大幅増加 ○武器の増加! ○対戦ステージの増加! ○コミュニケーション機能追加! ○ MPOと従来互換性あり! ○初心者モードも搭載! ○新ルール追加! 【新たな兵士機能!】 ○スキル「S2、S3」 ○新キャリア 【仲間集めが更に楽しく!】 ○APスカウトシステム ○130種を超える兵士が仲間に! 【繰り返し遊べる新シングルモード!】 ○インフィニティーミッション ◆ムービー トレイラー プロモーションビデオ ◆画像